/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;

import cn.mcsys.myadmin.common.persistence.DataEntity;

/**
 * 专线车辆记录Entity
 * @author bobo
 * @version 2018-11-02
 */
public class AirCarLog extends DataEntity<AirCarLog> {
	
	private static final long serialVersionUID = 1L;
	private String carNumber;		// 车牌号
	private String type;		// 车辆类型
	private String belongUnit;		// 所属单位
	private Integer seating;		// 座位数
	private Integer vat;		// 当前车辆速度
	private Integer direction;		// 车辆方向
	private String lon;		// 车辆当前经度
	private String lat;		// 车辆当前纬度
	private String servicePointName;		// 服务点名称
	private Integer outsideType;		// 是否是外市车辆
	private Date modificationDate;		// 修改时间
	private String note;		// 备注
	
	public AirCarLog() {
		super();
	}

	public AirCarLog(Integer id){
		super(id);
	}

	@Length(min=0, max=16, message="车牌号长度必须介于 0 和 16 之间")
	public String getCarNumber() {
		return carNumber;
	}

	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}
	
	@Length(min=0, max=20, message="车辆类型长度必须介于 0 和 20 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=32, message="所属单位长度必须介于 0 和 32 之间")
	public String getBelongUnit() {
		return belongUnit;
	}

	public void setBelongUnit(String belongUnit) {
		this.belongUnit = belongUnit;
	}
	
	public Integer getSeating() {
		return seating;
	}

	public void setSeating(Integer seating) {
		this.seating = seating;
	}
	
	public Integer getVat() {
		return vat;
	}

	public void setVat(Integer vat) {
		this.vat = vat;
	}
	
	public Integer getDirection() {
		return direction;
	}

	public void setDirection(Integer direction) {
		this.direction = direction;
	}
	
	@Length(min=0, max=32, message="车辆当前经度长度必须介于 0 和 32 之间")
	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}
	
	@Length(min=0, max=32, message="车辆当前纬度长度必须介于 0 和 32 之间")
	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}
	
	@Length(min=0, max=16, message="服务点名称长度必须介于 0 和 16 之间")
	public String getServicePointName() {
		return servicePointName;
	}

	public void setServicePointName(String servicePointName) {
		this.servicePointName = servicePointName;
	}
	
	public Integer getOutsideType() {
		return outsideType;
	}

	public void setOutsideType(Integer outsideType) {
		this.outsideType = outsideType;
	}
	
	public Date getModificationDate() {
		return modificationDate;
	}

	public void setModificationDate(Date modificationDate) {
		this.modificationDate = modificationDate;
	}
	
	@Length(min=0, max=64, message="备注长度必须介于 0 和 64 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
}